package com.sven;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.cloud.stream.messaging.Source;

/**
 * 表示配置文件中output的消息通道Binding，Source中的小通道名称为output
 * 表示配置文件中input的消息通道Binding，Sink中的小通道名称为input
 */
@EnableBinding({Source.class, Sink.class, OrderChannel.class})
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
